package com.qf.spring.ioc.controller;


import com.qf.spring.ioc.entity.User;
import com.qf.spring.ioc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

@Controller
public class UserController {

    //    @Resource(name = "userServiceImpl",type = UserServiceImpl.class)
    @Autowired
//    @Qualifier("userServiceImpl1")
    private UserService userService;

    public User login(String userName, String password) {
        return userService.login(userName, password);
    }
}
